package com.example.mobilechannel;

import android.util.Log;

public class ConnectPos {
	
	public ConnectPos() {
		isStart = false;
		sendData = "ddddddddddd";
	}
	
	private String sendData;
	
	public String read() {
		if(true == isStart) {
			return sendData;
		}else {
			return null;
		}
	}
	
	public boolean write(String buff) {
		if(null != buff) {
			Log.d(this.toString(), buff);
		}else {
			Log.d(this.toString(), "null");
		}
		return true;
	}
	
	private boolean isStart;
	
	public void start() {
		isStart = true;
	}
	
	public void stop() {
		isStart = false;
	}
	
	public void setData(String data) {
		sendData = data;
	}
}
